<template>
	<view v-if="urlAppPay.length">
		<web-view :webview-styles="webviewStyles" :src="urlAppPay"></web-view>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				webviewStyles: {
									progress: {
										color: '#FF3333'
									}
								},
				urlAppPay:'',
				wechatOrderId:0,
			}
		},
		onLoad(option) {
			uni.$u.http.post('/test/pay2',{
				wechatOrderId:Number(option.wechatOrderId),
				payType:2
			}).then(res=>{
				if(res){
					this.urlAppPay=res.qr_code
				}
			})
			
			
		},
		onShow() {
			
		}
	}
</script>

<style>
</style>